package com.climber.android.commonres.widget

import android.content.Context
import android.util.AttributeSet
import android.view.Gravity
import android.view.View
import android.widget.LinearLayout
import com.climber.android.commonres.R

/**
 * Created by mikes on 2018-5-9.
 */
class EndingMarkView : LinearLayout {
    constructor(context: Context) : super(context)
    constructor(context: Context, attrs: AttributeSet? = null) : super(context, attrs)
    constructor(context: Context, attrs: AttributeSet, defStyleAttr: Int) : super(context, attrs, defStyleAttr)

    init {
        View.inflate(context, R.layout.com_view_ending_mark, this)
        orientation = VERTICAL
        gravity = Gravity.CENTER
    }

    fun changeMarkerBackgroundColor(bgColor : Int){
        this.setBackgroundColor(bgColor)
    }
}